﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace XEvents.Library
{
    [Serializable]
    public class Map : XEObjectBase
    {
        public IEnumerable<MapValue> Values
        {
            get
            {
                return from mv in Server.MetaData.map_values
                           where mv.name == this.name
                           select new MapValue(mv, this.Server);
            }
        }

        internal Map(dm_xe_object obj, SqlServer server)
            : base(obj, server)
        { }

        private Map()
            : base(null)
        { }
    }
}
